🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / feature / map / src / commonMain / kotlin / org / meshtastic / feature / map / component / MapFilterActions.kt
Displaying Raw • Download
feature/map/src/commonMain/kotlin/org/meshtastic/feature/map/component/MapFilterActions.kt renovate/fastlane-2.x-lockfile (056eed64) Text, 2.81 KB
T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.feature.map.component
Tff7b72import T7ee787androidx.compose.runtime.Stable
Tff7b72import T7ee787org.meshtastic.feature.map.BaseMapViewModel
Tff7b72import T7ee787org.meshtastic.feature.map.LastHeardFilter
Tff7b72import T7ee787org.meshtastic.proto.Config
T8b949e/**
* What the map's filter menu can do.
*
* Hoisted into its own type so [MapFilterSheet] never holds a view model: each flavour builds this from whichever
* [org.meshtastic.feature.map.BaseMapViewModel] subclass it has, and the menu stays a pure function of state.
*/
Tf0883e@Stable
Tf0883e@SuppressTb4b4b4(Ta5d6ff"Ta5d6ffLongParameterListTa5d6ff"Tb4b4b4) T8b949e// One callback per control; a bag of lambdas is the point of this type.
Tff7b72class T56d364MapFilterActionsTb4b4b4(
Tff7b72val Te6edf3onToggleOnlyFavoritesTb4b4b4: Tb4b4b4(Tb4b4b4) Tff7b72-Tff7b72> Tffa657UnitTb4b4b4,
Tff7b72val Te6edf3onToggleShowWaypointsTb4b4b4: Tb4b4b4(Tb4b4b4) Tff7b72-Tff7b72> Tffa657UnitTb4b4b4,
Tff7b72val Te6edf3onToggleShowPrecisionCircleTb4b4b4: Tb4b4b4(Tb4b4b4) Tff7b72-Tff7b72> Tffa657UnitTb4b4b4,
Tff7b72val Te6edf3onSelectLastHeardTb4b4b4: Tb4b4b4(Te6edf3LastHeardFilterTb4b4b4) Tff7b72-Tff7b72> Tffa657UnitTb4b4b4,
Tff7b72val Te6edf3onToggleRoleExcludedTb4b4b4: Tb4b4b4(Te6edf3ConfigTb4b4b4.Te6edf3DeviceConfigTb4b4b4.Te6edf3RoleTb4b4b4) Tff7b72-Tff7b72> Tffa657UnitTb4b4b4,
Tff7b72val Te6edf3onClearExcludedRolesTb4b4b4: Tb4b4b4(Tb4b4b4) Tff7b72-Tff7b72> Tffa657UnitTb4b4b4,
Tff7b72val Te6edf3onToggleOnlyOnlineTb4b4b4: Tb4b4b4(Tb4b4b4) Tff7b72-Tff7b72> Tffa657UnitTb4b4b4,
Tff7b72val Te6edf3onToggleOnlyDirectTb4b4b4: Tb4b4b4(Tb4b4b4) Tff7b72-Tff7b72> Tffa657UnitTb4b4b4,
Tff7b72val Te6edf3onToggleExcludeMqttTb4b4b4: Tb4b4b4(Tb4b4b4) Tff7b72-Tff7b72> Tffa657UnitTb4b4b4,
Tff7b72val Te6edf3onToggleShowIgnoredTb4b4b4: Tb4b4b4(Tb4b4b4) Tff7b72-Tff7b72> Tffa657UnitTb4b4b4,
Tff7b72val Te6edf3onToggleIncludeUnknownTb4b4b4: Tb4b4b4(Tb4b4b4) Tff7b72-Tff7b72> Tffa657UnitTb4b4b4,
Tb4b4b4)
T8b949e/**
* The standard wiring from a view model to [MapFilterSheet].
*
* Both flavours build the identical bag of method references, and eleven of them written out twice is eleven chances
* for the two maps to drift apart again — which is exactly what [org.meshtastic.feature.map.MapNodePolicy] exists to
* prevent on the rules side.
*/
Tff7b72fun Te6edf3BaseMapViewModelTb4b4b4.Td2a8ffmapFilterActionsTb4b4b4(Tb4b4b4)Tb4b4b4: Te6edf3MapFilterActions Tff7b72= Te6edf3MapFilterActionsTb4b4b4(
Te6edf3onToggleOnlyFavorites Tff7b72= Tff7b72::Te6edf3toggleOnlyFavoritesTb4b4b4,
Te6edf3onToggleShowWaypoints Tff7b72= Tff7b72::Te6edf3toggleShowWaypointsOnMapTb4b4b4,
Te6edf3onToggleShowPrecisionCircle Tff7b72= Tff7b72::Te6edf3toggleShowPrecisionCircleOnMapTb4b4b4,
Te6edf3onSelectLastHeard Tff7b72= Tff7b72::Te6edf3setLastHeardFilterTb4b4b4,
Te6edf3onToggleRoleExcluded Tff7b72= Tff7b72::Te6edf3toggleRoleExcludedTb4b4b4,
Te6edf3onClearExcludedRoles Tff7b72= Tff7b72::Te6edf3clearExcludedRolesTb4b4b4,
Te6edf3onToggleOnlyOnline Tff7b72= Tff7b72::Te6edf3toggleOnlyOnlineTb4b4b4,
Te6edf3onToggleOnlyDirect Tff7b72= Tff7b72::Te6edf3toggleOnlyDirectTb4b4b4,
Te6edf3onToggleExcludeMqtt Tff7b72= Tff7b72::Te6edf3toggleExcludeMqttTb4b4b4,
Te6edf3onToggleShowIgnored Tff7b72= Tff7b72::Te6edf3toggleShowIgnoredTb4b4b4,
Te6edf3onToggleIncludeUnknown Tff7b72= Tff7b72::Te6edf3toggleIncludeUnknownTb4b4b4,
Tb4b4b4)
Served by rngit 1.5.2 - Generated in 0.07s